using Newtonsoft.Json;

namespace ICommonLibrary.Json {

    public static class JsonWriterExtension {

        public static void WriteProperty(this JsonWriter writer, string name, bool value) {
            writer.WritePropertyName(name);
            writer.WriteValue(value);
        }

        public static void WriteProperty(this JsonWriter writer, string name, double value) {
            writer.WritePropertyName(name);
            writer.WriteValue(value);
        }

        public static void WriteProperty(this JsonWriter writer, string name, int value) {
            writer.WritePropertyName(name);
            writer.WriteValue(value);
        }

        public static void WriteProperty(this JsonWriter writer, string name, string value) {
            writer.WritePropertyName(name);
            writer.WriteValue(value);
        }
        
    }
}